<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/6/25
 * Time: 14:08
 */

namespace Admin\Controller;


use Think\Controller;

class PrintController extends Controller {
    public function index(){

    }
    public function printOrder_gc($id){
        if($id == 'install_lodop32.exe' || $id=='install_lodop64.exe'){
            $this->display("Print/install");
        }else{
        $obj = M("order_profile");
        $obj3 = M("user_profile");

        //订单详情
        $arr = $obj->where("oid=".$id)->find();
        $omid = $arr["omid"];
        $type = $arr["pro_id"];
        $uid = $arr["uid"];

        //尺寸
        $lt_arr = $obj3->where("type=".$type." and uid=".$uid)->find();
        //姓名
        $obj2 = M("user_main");
        $arr2 = $obj2->where("uid=".$uid)->find();
        $name = $arr2["name"];

        //展示
        $this->assign("order_arr",$arr);
        $this->assign("lt_arr",$lt_arr);
        $this->assign("name",$name);
        $this->display();
        }
    }
} 